package day5;

public class Demo6Triangle4 {
    public static void main(String[] args) {
        Demo6TriangleKind triangle = new Demo6TriangleKind();
        triangle.x = 3;
        triangle.y = 4;
        triangle.z = 5;

        boolean judge = triangle.eq(triangle);
        System.out.println("等边三角型？"+judge);

        boolean judge1 = triangle.eq1(triangle);
        System.out.println("等腰三角型？"+judge1);

        boolean judge2 = triangle.eq2(triangle);
        System.out.println("直角三角型？"+judge2);

        int zc = triangle.showTriangle(triangle);
        System.out.println("周长："+zc);
    }
}
